[mirrors]
http://ftp.gnome.org/pub/GNOME/sources/pango/1.30/pango-1.30.0.tar.xz

[main]
filesize=1158224
sha512=ba0697819fcddb25424977ed22deae087cee33f5b455b44a7890e76b7bcb3d4014420cd1de542d356af32384dc249f910087a2a8a9cf18a8688c1fa549ab6add

[deps]
glib
fontconfig
libstdc++
libx11
libxft
cairo

[build]
printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > tests/Makefile.in
patch -p1 < "$K/pango-querymodules-prefix.patch"
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') --with-sysroot=$butch_root_dir"
CFLAGS="$optcflags -D_GNU_SOURCE" LDFLAGS="$optldflags" \
CXXFLAGS="$optcflags" \
./configure -C --prefix="$butch_prefix" $xconfflags \
  --enable-introspection=yes
make -j$MAKE_THREADS V=1
make DESTDIR="$butch_install_dir" install

if [ -z "$CROSS_COMPILE" ] ; then
echo query modules
dest="$butch_install_dir""$butch_prefix"
LD_LIBRARY_PATH="$dest"/lib \
  "$dest"/bin/pango-querymodules prefix="$butch_install_dir" > "$dest"/etc/pango/pango.modules
else
	echo "XXXXXXXXXXX WARNING: you must run pango-querymodules in the target rootfs! XXXXXXXXXX"
fi

